import Vue from 'vue'
import Router from 'vue-router'
import about from '@/components/about'
import home from '@/components/home'
import news from '@/components/news'
import product from '@/components/product'
import relation from '@/components/relation'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/news',
      name: 'news',
      component: news
    },
    {
      path: '/product',
      name: 'product',
      component: product
    },
    {
      path: '/relation',
      name: 'relation',
      component: relation
    },
  ],
  mode: 'hash',
})
